<template>
  <div class="">
    <button @click="cut">切换</button>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from 'vuex';
export default {
  setup(props,{emit}) {
    const store = useStore();
    const cut = () => {
    //    emit('cut')
       store.commit('cut')
    }
    return {
        cut
    }
  },
};
</script>
<style lang="scss" scoped>
</style>